import { withAuthOption } from 'src/types/route'
import { RouteConfigComponentProps } from 'react-router-config'

export interface ContextPorps<O> extends RouteConfigComponentProps<O> {}
export interface Context<option = {}> {
    props: ContextPorps<option>
    options: withAuthOption
}

export interface middleware {
    (ctx: Context, next: () => void ): void
}
